<#macro textfield field>  
	{
		xtype : '${field.type}',
		fieldLabel : '${field.fieldLabel!}',
		name : '${field.name!}'
	<#if (field.minLength??&&field.minLength > 0) >
		,minLength : ${field.minLength}
	</#if>
	<#if (field.maxLength??&&field.maxLength > 0) >
		,maxLength : ${field.maxLength}
	</#if>
	<#if (field.height??&&field.height > 0) >
		,height : ${field.height}
	</#if>
	<#if (field.colspan??&&field.colspan > 1) >
		,colspan : ${field.colspan}
	</#if>
	<#if (field.width??&&field.width > 0) >
		,width : ${field.width}
	</#if>
	<#if (field.cls?if_exists!="") >
		,cls : '${field.cls}'
	</#if>
	<#if (field.hidden?if_exists=true) >
		,hidden : true
	</#if>
	<#if (field.hideLabel?if_exists=true) >
		,hideLabel : true
	</#if>
	<#if (field.readOnly?if_exists=true) >
		,readOnly : true
	</#if>
	<#if (field.disabled?if_exists=true) >
		,disabled : true
	</#if>
	<#if (field.allowBlank?if_exists=false) >
		,allowBlank : false
	</#if>
		,value : '${field.value!}'
	}
</#macro>
